from  django.db import models

class Book(models.Model):   # 必须都继承models.Model类

    name = models.CharField(max_length=255,unique=True)
    nickname = models.CharField(max_length=255,default='匿名')
    qun_name = models.CharField(max_length=255,default='匿名')
    join_date = models.DateTimeField(auto_now_add=True)
    money = models.IntegerField(default=5)
    is_vip = models.IntegerField(default=0)
    vip_money = models.IntegerField(default=10)
    count = models.IntegerField(default=0)
    is_super = models.IntegerField(default=0)


class Code(models.Model):   # 必须都继承models.Model类

    id = models.AutoField(primary_key=True)
    path=models.CharField(default=0,max_length=255)
    appid=models.CharField(default=0,max_length=255)
    png_url = models.TextField(default=0)
    join_date = models.DateTimeField(auto_now_add=True)




